package com.vincent.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
@TableName("user")
public class User implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer id;

    private String name;

    private String phone;

    private String address;

    private Integer enabled;

    private String username;

    private String password;

    @TableField(value = "user_face")
    private String userFace;

    private String remark;
    //人员类型(1:系统管理员,2:hr 人员,4:员工'
    private Integer type;

    @TableField(exist = false)
    private Role role;

    @TableField(exist = false)
    private List<String> perms;

    @TableField(exist = false)
    private List<Menu> menus;
}
